package com.nq.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class StFundApplyDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    // 买入
    public static final Integer STATUS_BUY = 0;
    // 卖出中
    public static final Integer STATUS_SELL = 1;
    // 卖出成功
    public static final Integer STATUS_SELL_SUCCESS = 2;

    @TableId(type = IdType.AUTO,value = "id")
    private int id;
    private Integer userId;
    private Integer fundId;
    private String orderNumber;

    private BigDecimal purchaseAmount;
    // 买卖时的当前基金的价格
    private BigDecimal initPrice;
    // 份额
    private BigDecimal purchaseShare;

    private Integer status;
    // 交易类型 0 买入 1卖出中 2 卖出成功
    private Integer tradeType;
    private Date addTime;
    private Date beginTime;
    // 盈亏
    private BigDecimal profitAndLoss;
    // 涨跌幅
    private BigDecimal up;

    private BigDecimal frontEndLoad;

    private BigDecimal backEndLoad;

    private BigDecimal managementFee;

    private BigDecimal twelveFee;
}
